package com.nuhu.service.impl;

import com.nuhu.dao.AdminPackageDao;
import com.nuhu.pojo.Package;
import com.nuhu.pojo.User;
import com.nuhu.pojo.Worker;
import com.nuhu.service.admin_PackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class admin_PackageServiceimpl implements admin_PackageService {

    @Autowired
    private AdminPackageDao adminPackageDao;
    @Override
    public List<User> getPackage(int page, int size) {
        int offset = (page - 1) * size;
        return adminPackageDao.getPackage(offset, size);
    }

    @Override
    public Package getpackageimformation(String packageId) {
        return adminPackageDao.getPackageInformation(packageId);
    }
}
